from timeholder import models
from django.shortcuts import render, redirect, HttpResponse


def project(request):
    """项目列表显示"""
    if request.method=="GET":
        # 查询当前用户的所有项目
        # my_list = models.UserInfo.objects.filter(username=request.user_obj)
        my_list = models.UserInfo.objects.filter(username="zhangsan")

        print(my_list)
    return render(request, 'project.html')
